<?php
class Language_model extends CI_Model
{
	public function getall()
	{
		$data = array();
	/*	 $this->db->select('name','code');
		 $this->db->from('languages');
		$this->db->where('public','1');
		$this->db->order_by('order');
		$q = $this->db->get();*/
		$q = $this->db->get_where('languages',array('public'=>'1'));
		if($q -> num_rows())
		{
			$data = $q->result_array();
		}
		$q-> free_result();
		return $data;
	}
}